package matossian.j2se6.examples.excepciones;

import java.io.File;

public class Excepciones {

	public static void main(String[] args) {
		try {
			File file = new File("pornVideo.mkv");
			throw new PornNotFoundException("Porn video not found.", file);
		} catch(PornNotFoundException e) {
			System.out.println("catch");
//			e.printStackTrace();
			System.out.println("File: " + e.getFile().getAbsolutePath()
								+ ", Date: " + e.getDate());
		} finally {
			System.out.println("finally");
		}
	}

}
